package connector.homework4;

public class BloodWarrior extends Warrior {
    public BloodWarrior() {
    }

    public BloodWarrior(int experience, int blood) {
        super(experience, blood);
    }
    @Override
    public int injure(int x) {
        if (this.getBlood()<MAX/2) {
            System.out.println("血液量不足，有危险！");
        }
        return super.injure(x);
    }
}
